<?php

namespace App\Http\Controllers\Index;

use Illuminate\Http\Request;
use App\Http\Controllers\Controller;

class IndexController extends Controller
{
    //
    public function index(){
        $title = "<a href='www.baidu.com'>百度</a>";
        $time = time();
        $age = '18';
        $art1 = [
            ['id' => 1,'titles' => '第一条'],
            ['id' => 2,'titles' => '第二条'],
            ['id' => 3,'titles' => '第三条'],
            ['id' => 4,'titles' => '第四条'],
            ['id' => 5,'titles' => '第五条'],
        ];
        $art2 = [];
        return view('index',compact('title','time','age','art1','art2'));
    }
}
